﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using AutoTestingFramework.Core;
using OpenQA.Selenium;

namespace AutoTestingFramework.UnitTests.PageObjectModels
{
    public class BingHomePOM : PageObjectModelBase<BingHomePOM>
    {
        private readonly IWebDriver _webBroswer;

        public BingHomePOM(IWebDriver driver, TestBase test)
            : base(test)
        {
            _webBroswer = driver;
            this.Url = @"/";
        }

        public IWebElement txt_SearchInput()
        {
            return _webBroswer.FindElement(By.Id("sb_form_q"));
        }

        public IWebElement btn_DoSearch()
        {
            return _webBroswer.FindElement(By.Id("sb_form_go"));
        }
    }
}
